package cn.edu.zafu.bigdata.bd121.grade;

/**
 * 测试学生成绩管理类
 *
 * @author 202211090121
 */
public class TestManager {

    public static void main(String[] args) {
        StudentGradeManager manager = StudentGradeManager.getInstance();
        manager.addStudent("张三", 90);
        int grade = manager.getGrade("张三");
        System.out.println("张三的成绩是：" + grade);
        manager.removeStudent("张三");
        grade = manager.getGrade("张三");
        // 张三不存在，返回-1
        System.out.println("张三的成绩是：" + grade);
    }
}
